﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IChessEngine;

namespace ChessEngine.Basic
{
    public class ChsSquare : IChsSquare
    {
        private int x;
        private int y;
        public ChsSquare(int _x, int _y)
        {
            x = _x;
            y = _y;
        }
        public int X
        {
            get { return x; }
        }
        public int Y
        {
            get { return y; }
        }
        public override string ToString()
        {
            return String.Format("{0}{1}",(char)('a'+x) ,y+1);
        }
        public char ColumnString
        {
            get { return (char)('a' + x); }
        }
    }
}
